package thread;

/**
 * Created by qq65827 on 2015/2/3.
 */
public class Main {

    public static void main(String[] args) throws InterruptedException {
        for (int i = 0; i < 1000; i++) {
            new Thread(new Runnable() {
                @Override
                public void run() {
                    Counter.inc();
                }
            }).start();

        }

        System.out.println("运行结果:Counter.count=" + Counter.cout);
    }
}
